feat: add Exa AI-powered search tool#3077
Open
tgonzalezc5 wants to merge 1 commit intokortix-ai:mainfrom
Open
Conversation
Add a new exa_search tool that provides web search via the Exa API, complementing the existing Tavily and Serper integrations. Supports neural/semantic search, category filtering, domain filtering, text filtering, date ranges, and batch queries. - New tool: core/kortix-master/opencode/tools/exa_search.ts - Unit tests: core/kortix-master/tests/unit/exa-search.test.ts - Display names and icon keys for exa_search - EXA_API_KEY in .env.example and seed-env.json - Kortix proxy pattern support (EXA_API_URL + KORTIX_TOKEN)
Contributor
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
@tgonzalezc5 is attempting to deploy a commit to the Kortix AI Corp Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
exa_searchtool that provides web search via the Exa search API, complementing the existing Tavily and Serper integrations|||web_searchtool (title, URL, snippet, published date, author)EXA_API_URL+KORTIX_TOKENwhen routed through the proxy, orEXA_API_KEYfor direct API accessUsage example
Files changed
core/kortix-master/opencode/tools/exa_search.tscore/kortix-master/tests/unit/exa-search.test.tspackages/shared/src/tools/display-names.tsexa_searchpackages/shared/src/tools/icon-keys.tsexa_searchcore/docker/.env.exampleEXA_API_KEYandEXA_API_URLentriescore/kortix-master/seed-env.jsonEXA_API_KEYplaceholderTest plan
bun test tests/unit/exa-search.test.ts- 19/19 pass)web_searchoutput structureEXA_API_KEYin sandbox environmentNote
Medium Risk
Adds a new external-API tool path with env-driven auth/proxy behavior; issues would primarily affect web-search functionality and runtime configuration rather than core platform security.
Overview
Introduces a new
exa_searchOpenCode tool that queries the Exa Search API (with optionalEXA_API_URLproxy routing) and returns structured JSON results, including support for batch queries, search/content modes, and domain/text/date/category filters.Wires the integration into configuration and UX by adding
EXA_API_KEY/EXA_API_URLplaceholders to.env.exampleandseed-env.json, adding display names and icon mappings forexa_search, and adding unit tests that cover snippet/formatting helpers and basic fetch error handling.Reviewed by Cursor Bugbot for commit 48ade57. Bugbot is set up for automated code reviews on this repo. Configure here.